{subtemplate jameson_read:author_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div id="jameson_read" class="author_jamesonread  jameson_read uk-grid-collapse pt10" uk-grid>
	<div class="uk-width-medium" style="width: 230px;">
		<div class="uk-border-e6 back-f9">
			<div class="uk-card">
			    <div class="uk-card-header uk-text-center">
			            <div class="">
			                <img class="uk-border-circle" width="80" height="80" src="{eval echo avatar($_G['uid'],'big',true);}">
			            </div>
			            <div class="">
			                <h3 class="uk-card-title uk-margin-remove-bottom">{$_G['username']}</h3>
			                <p class="uk-text-meta uk-margin-remove-top">
			                	{lang jameson_read:yifabutushu}[{$_G['jameson_read']['booksnum']}]{lang jameson_read:bu}
			                </p>
			            </div>
			    </div>
			    <div class="uk-card-footer">
			    	<a href="{eval echo jamesonurl('author',0,'book');}" class="uk-button uk-button-primary">{lang jameson_read:tianjiaxinshu}+</a>
			    </div>
			</div>
			<ul class="uk-nav-primary uk-nav-parent-icon uk-border-top uk-border-bottom" uk-nav>
			  	<li class="pl10 {if !isset($_GET['act']) || ($_GET['act'] == 'index')} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'index');}"><span class="uk-margin-small-right" uk-icon="icon: pencil"></span>{lang jameson_read:zuopinguanli}</a>
			  	</li>
			  	<li class="pl10 {if $_GET['act'] == 'xiajia'} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'xiajia');}"><span class="uk-margin-small-right" uk-icon="icon: menu"></span>{lang jameson_read:xiajiazuopin}</a>
			  	</li>
		  		{if $_G['jameson_read']['enableshupiao']}
			  	<li class="pl10 {if $_GET['act'] == 'shupiao'} uk-active {/if} uk-border-bottom">
		  	        <a class="" href="{eval echo jamesonurl('author',0,'shupiao');}"><span class="uk-margin-small-right" uk-icon="icon: credit-card"></span>{lang jameson_read:wodeshupiao}</a>
			  	</li>
			  	{/if}
			  	<li class="pl10 {if $_GET['act'] == 'dashang'} uk-active {/if} uk-border-bottom">
			  		<a href="{eval echo jamesonurl('author',0,'dashang');}"><span class="uk-margin-small-right" uk-icon="icon: album"></span>{lang jameson_read:dashangjilu}</a>
			  	</li>
			    <li class=" pl10   {if $_GET['act'] == 'sell'} uk-active {/if}">
			        <a class="" href="{eval echo jamesonurl('author',0,'sell');}"><span class="uk-margin-small-right" uk-icon="icon: table"></span>{lang jameson_read:xiaoshou}{lang jameson_read:jilu}</a>
			    </li>
			</ul>
			{if $_G['jameson_read']['authorcentergg']}
			<div class="uk-padding-small" uk-alert>
				<!--{$_G['jameson_read']['authorcentergg']}-->
			</div>
			{/if}
		</div>
		</div>
	

<div class="uk-width-expand uk-margin-left">
	<h1 class="uk-heading-divider">
    	{if $action=='edit'}
    		<a href="{eval echo jamesonurl('book',$books['book_id']);}">&lceil;{$books['book_name']}&rfloor;</a>
    	{else}
    		+{lang jameson_read:tianjiaxinshu}
    	{/if}
    </h1>
    <progress id="progressbar" class="uk-progress" value="0" max="100" hidden></progress>
	<ul class="uk-tab mtm mb0 pl0" uk-tab="{connect:'.uk-switcher'}">
	   	<li class="xs3 xw1 pl0 {if empty($_GET['book_id'])} uk-active {/if}">
	   		<a href="javascript:;" class="">{lang jameson_read:tushujibenxinxi}</a>
	   	</li>
	      <!-- 如果是pdf则隐藏分卷 -->
	    {if $_GET['book_id']}
	    	{if !$books['is_pdf']}
	    	  	<li class="xs3 xw1 {if $_GET['forward']=='book_column' || empty($_GET['forward'])}uk-active{/if}">
	    	  		<a class="" href="javascript:;">{lang jameson_read:zhangjieguanli}/{lang jameson_read:tianjia}</a>
	    	  	</li>
	    	{else}
	    	  	<li class="xs3 xw1 {if $_GET['forward']=='book_pdf'}uk-active{/if}">
	    	  		<a  class="" href="javascript:;">PDF</a>
	    	  	</li>
    	    {/if}
	    	{if $_G['jameson_read']['enableshuping'] && !$_G['jameson_read']['otherpinglun']}
	    	    <li class="xs3 xw1 {if $_GET['forward']=='book_shuping'}uk-active{/if}">
		    	    <a class="" href="javascript:;">{lang jameson_read:shupingguanli}</a>
	    	    </li>
	    	{/if}
	    	{if $books['fenjuan']}
				<li class="xs3 xw1 {if $_GET['forward']=='book_sell'}uk-active{/if}">
		    	    <a class="" href="javascript:;">{lang jameson_read:xiaoshou}{lang jameson_read:jilu}</a>
	    	    </li>
	    	{/if}
	    {/if}
	</ul>
	<div id="bookeditinfo" class="uk-switcher">
		<!-- desco start -->
		<div class="{if empty($_GET['book_id'])} uk-active {/if}" id="book_desco">
			<form class="uk-form" action="./plugin.php?id=jameson_read&contrl=author&act=postbook" method="post" enctype="multipart/form-data">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="book_id" value="{$book_id}" />
				<input type="hidden" name="forward" value="book_desco" />
				<progress id="progressbar" class="uk-progress" value="0" max="100" hidden></progress>
				<div class="uk-grid-small" uk-grid>
					<div class="uk-width-1-3">
						<div class="uk-text-center">
					      	<img style="margin:8px;width: 95%;" src="{if $books['image'] && preg_match('/^http|\/\//i',$books['image'])}{$books['image']}{elseif $books['image']}./data/attachment/forum/{$books['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" data-uploadfm />
					        {if $_G['jameson_read']['qiniuak'] && $_G['jameson_read']['qiniusk'] && $_G['jameson_read']['qiniuyuming'] && $_G['jameson_read']['qiniukongjian']}
				        	<div class="uk-placeholder uk-text-center ptm pbm relative">
				        		<span uk-icon="icon: cloud-upload"></span>
				        		<div class="uk-form-custom" style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;">
					          		<input accept="image/*" type="file" onchange="jameson.qiniuimg(this,{eval echo $_GET['book_id']?$_GET['book_id']:0;})">
					          		{if $_GET['book_id'] < 1}
					          		<input id="imgname" type="hidden" name="imgname">
					          		{/if}
					          	</div>
				        	</div>
				        	{else}
				        		<div class="test-upload uk-placeholder uk-text-center ptm pbm">
				        			<span uk-icon="icon: cloud-upload"></span>
					        		<div uk-form-custom>
					        			{lang jameson_read:shangchuanfengmian}
										<input id="imgname" class="noqiniu" accept="image/*" type="file" name="imgname">
						          	</div>
					        	</div>
				        	{/if}
					    </div>
					</div>
					<div class="uk-width-2-3">
						<div class="uk-form-row">
						  <div class="uk-form-controls">
							  <label class="uk-form-label xs3 mbm ptm">{lang jameson_read:neirongjianjie}</label>
							  <textarea style="width: 98%;display: block;" name="book_descro" class="uk-textarea">{eval echo dhtmlspecialchars($books['desco'])}</textarea>
						  </div>
						  <div class="uk-form-controls mtm ptm mbm">
						  	<label class="uk-form-label xs3 ">{lang jameson_read:zuozhejianajie}</label>
						  	<textarea style="width: 98%;display: block;" name="authorinfo" class="uk-textarea">{eval echo dhtmlspecialchars($books['authorinfo'])}</textarea>
						  </div>
						</div>
					</div>
				</div>
				<hr>
				<div class="uk-padding-small">
				<div class="uk-grid-small" uk-grid>
					<div class="uk-width-1-3">
						<div class="uk-form-row">
							<label class="uk-form-label">{lang jameson_read:shuming}:</label>
							<div class="uk-form-controls">
								<input class="uk-input" required type="text" name="book_name" value="{$books['book_name']}" />
							</div>
						</div>
					</div>
					
					<div class="uk-width-1-3">
						<div class="uk-form-row">
						  <label class="uk-form-label">{lang jameson_read:zuozhe}:</label>
						  <div class="uk-form-controls">
							  <input class="uk-input" type="text" name="author" value="{$books['author']}" />
						  </div>
						</div>
					</div>
					<div class="uk-width-1-3">
						<div class="uk-form-row fenleiselect">
							<label class="uk-form-label">{lang jameson_read:fenlei}:</label>
							<div class="uk-form-controls">
							<select class="uk-select" style="display: inline-block;width: auto" name="parent_id" id="selectcategory" onchange="jameson.changeCategory(this)" >
								{loop $books['categorys'] $value}
									<option {if $value['category_id'] == $books['parent_id']}selected{/if} value="{$value['category_id']}">{$value['category_name']}</option>
								{/loop}
							</select>
							<select class="uk-select" style="display: inline-block;width: auto" name="category_id" id="selectcategory_menu" >
								{loop $books['childcate'] $value}
									<option {if $value['category_id'] == $books['category_id']}selected{/if}  value="{$value['category_id']}">{$value['category_name']}</option>
								{/loop}
							</select>
							</div>
						</div>
					</div>
				
					<div class="uk-width-1-3">
						<div class="uk-form-row">
							<label class="uk-form-label">{lang jameson_read:biaoqian}:</label>
							<div class="uk-form-controls">
								<input placeholder="{lang jameson_read:biaoqiantianxie}" {if trim($books['shuxing'])} value="{$books['shuxing']}" {/if} type="text" name="shuxing" class="uk-input">
							</div>
						</div>
					</div>
					<div class="uk-width-1-3">
						<div class="uk-form-row">
						  <label class="uk-form-label">{lang jameson_read:zhuangtai}:</label>
						  <div class="uk-form-controls">
							  <select name="plan" class="uk-select">
							  	<option value="0" {if !$books['plan']}selected{/if}>{lang jameson_read:lianzaizhong}</option>
							  	<option value="1" {if $books['plan']}selected{/if}>{lang jameson_read:yiwanjie}</option>
							  </select>
						  </div>
						</div>
					</div>
					
					{if !isset($_GET['book_id']) || !$_GET['book_id']}
					<div class="uk-width-1-3" >
						<div class="uk-form-row" title="{lang jameson_read:bukexiugai}" data-uk-tooltip="{pos:'top'}">
							<label class="uk-form-label">{lang jameson_read:tushuleixing}:</label>
							<div class="uk-form-controls mtn">
								<input onclick="jameson.showtxt(0)" type="radio" checked name="is_pdf"  class="uk-radio"  value="0"  />
								{lang jameson_read:putong}{lang jameson_read:tushu}
								<span class="pipe"> | </span>
								<input onclick="jameson.showtxt(1)" class="uk-radio" type="radio" name="is_pdf" value="1"  />
								PDF{lang jameson_read:tushu}
							</div>
						</div>
					</div>
					{/if}
					{if !$books['is_pdf']}
					<div class="uk-width-1-3" id="shangchuantxtbutton">
						<div class="uk-form-row">
							<label class="uk-form-label">&nbsp;</label>
							<div class="uk-form-controls">
								<input  class="uk-radio"  onclick="jameson.shangchuantxt(1,'shuangchuantxtwrapper')"   type="radio" name="shangchuantxt" value="1"  id="shangchuanradio" />
							{lang jameson_read:shangchuan}TXT
								<input class="uk-radio"  onclick="jameson.shangchuantxt(0,'shuangchuantxtwrapper')" type="radio" checked name="shangchuantxt"  class=""  value="0" id="bushangchuanradio" />
							{lang jameson_read:bushangchuan}TXT
							</div>
						</div>
					</div>
					{/if}
				{if $authorinfo[$authorinfo['setsj']]}
				<div class="uk-width-1-{if $book_id}3{else}1{/if} {if !$books['is_pdf']} none {/if}" id="pdfshoujia">
					<div class="uk-form-row">
					  <label class="uk-form-label">{lang jameson_read:shoujia}/{$_G['jameson_read']['trametitle']}:</label>
					  <div class="uk-form-controls">
					  	{if $authorinfo['setsj'] == 'zgsj'}
						  <input class="uk-input"  value="{$books['bookmoney']}"  name="bookmoney" uk-tooltip title="{lang jameson_read:xiaoyu}{$authorinfo['zgsj']}{$_G['jameson_read']['trametitle']}"   type="text"  style="display: inline-block;width: auto;" />
					  	{else}
							<select name="bookmoney" style="display: inline-block;width: auto;">
								<option value="0" {if $books['bookmoney']<1} selected {/if}>0</option>
								<option value="{$books['bookmoney']}" {if $books['bookmoney']} selected {/if}>{$books['bookmoney']}</option>
							</select>
					  	{/if}
					  	{if !$book_id}
							<span class="uk-alert uk-alert-danger" uk-alert>{lang jameson_read:pdftijiaotishi}</span>
					  	{/if}
					  </div>
					</div>	
				</div>
				{/if}
			</div>
				{if !$books['is_pdf']}
				<div class="none uk-panel uk-panel-box" id="shuangchuantxtwrapper">
				  	<div class="uk-form-row">
				        <label class="uk-form-label">
				            <a class="xs3 xi1 xw1" href="javascript:;" onclick="layer.open({
  type: 1,area:'1140px',offset:'50px',title: false,closeBtn: 0,shadeClose: true,content: '<img src=\'./source/plugin/jameson_read/images/tuli.jpg\'>'})">{lang jameson_read:shangchuantxt}{lang jameson_read:shili}</a>
				        </label>
				        <div class="uk-form-controls">
					        <input type="file"  class="" name="upload_txt" id="">
				        </div>
				    </div>
				  	<p>{lang jameson_read:shangchuantxtshuoming}
				  	</p>
				</div>
				{/if}
					<div class="text-center mtm mbm">
						{if $_GET['book_id'] && $books['is_pdf']}
							<input type="hidden" name="is_pdf" value="1">
						{/if}
						<button class="uk-button uk-button-danger" type="submit">{lang jameson_read:tijiao}</button>
					</div>
				</div>
			</form>
		</div>
		<!-- desco end -->
		<!-- colum start -->
		{if $_GET['book_id']}
		{if !$books['is_pdf']}
			<div class="{if $_GET['forward']=='book_column' || empty($_GET['forward'])}uk-active{/if}" id="book_column">
			    <!-- colum start -->
				{if $_GET['book_id'] && !$books['is_pdf']}
				<form action="" class="uk-form">
					<input type="hidden" name="forward" value="book_column" />
					{if is_array($books['fenjuan']) && $books['fenjuan']}
					{eval $jnums = 0;}
					<div  id="fenjuanguanli">
					{loop $books['fenjuan'] $juan}
						{eval $jnums++;}
						<div>
							<h3 class="uk-padding-small back-f9 mb0">
								<span data-jid="{$juan['j_id']}">{$juan['j_title']}</span>
								<span class="xs1 xg1 xw0">({lang jameson_read:dianjikongbaixiugai})</span>
								{if !$juan['colums']}
									<label class="xi1 xs1">{lang jameson_read:zanwuzhangjie}</em>
								{/if}
							</h3>
							<div id="fenjuan_tr_{$juan['j_id']}" class="mt0">
								<table  class="uk-table mt0">
									<thead  class="back-f9">
										<th colspan="2">
											<div class="uk-form-controls">
												<span class="pipe xg1"> {lang jameson_read:juan}{lang jameson_read:xuhao} </span>
												<input id="ordernum_{$juan['j_id']}" class="uk-input uk-width-80" type="text" value="{$juan['order_num']}" onchange="jameson.changejuan({$juan['j_id']},$('j_title_{$juan[j_id]}'))" />
												<span class="pipe xg1"> {lang jameson_read:juan}{lang jameson_read:biaoti} </span>
												<input class="uk-input uk-input-120px" id="j_title_{$juan['j_id']}"  type="text" value="{$juan['j_title']}" onchange="jameson.changejuan({$juan['j_id']},this)" />
											</div>
										</th>
										<th class="uk-text-right">
											<a href="./plugin.php?id=jameson_read&contrl=author&act=edit&j_id={$juan['j_id']}&book_id={$books['book_id']}" target="_blank" class="uk-button uk-button-small uk-button-primary" id="changefid{$juan['j_id']}">+{lang jameson_read:tianjiaxinzhangjie}</a>
											{if $authorinfo['allowedit']}
											<a href="javascript:jameson.remove(this,'fenjuan',{$juan['j_id']});" class="uk-button uk-button-small uk-button-danger">{lang jameson_read:shanchu}</a>
											{/if}
										</th>
									</thead>
									{if $juan['colums']}
									<tbody data-tbody="{$juan['j_id']}">
										{eval $columnums = 0;}
										{loop $juan['colums'] $colum}
										{eval $columnums++;}
										<tr data-cid="{$colum['colum_id']}" id="colums_tr_{$colum['colum_id']}" {if $columnums > 100} class="yinchangtr none" {/if}>
											<td>
												<span class="pipe">{lang jameson_read:xuhao}</span>
												<input class="uk-input" style="width: 50px;"  type="text" onchange="jameson.changeColum({$colum['colum_id']},{$colum['tid']})" id="zhangjie_{$colum['colum_id']}" value="{$colum['zhangjie']}"  />
												<span class="pipe none">{lang jameson_read:biaoti}</span>
												<input class="uk-input uk-input-75per"  type="text" onchange="jameson.changeColum({$colum['colum_id']},{$colum['tid']})" id="subject_{$colum['colum_id']}" value="{$colum['subject']}"  />
											</td>
											<td class="">
												{if $authorinfo[$authorinfo['setsj']] > 0}
													<span class="pipe">{lang jameson_read:shoujia}</span>
													{if $authorinfo['setsj']=='qzsj'}
														<select id="price_{$colum['colum_id']}"  class="uk-select uk-input-65px" data-zgsj="{$authorinfo['zgsj']}" onchange="jameson.changeColum({$colum['colum_id']},{$colum['tid']})" data-zgsj="{$authorinfo['zgsj']}">
															<option {if $colum['price']<1}selected{/if} value="0">0</option>
															<option {if $colum['price']}selected{/if} value="{$authorinfo['qzsj']}">{$authorinfo['qzsj']}</option>
														</select>
													{else}
													<input placeholder="{lang jameson_read:xiaoyu}{$authorinfo['zgsj']}{$_G['jameson_read']['trametitle']}" class="uk-input uk-input-45px movingnone"  onchange="jameson.changeColum({$colum['colum_id']},{$colum['tid']})" data-zgsj="{$authorinfo['zgsj']}" type="text"   id="price_{$colum['colum_id']}" value="{$colum['price']}" />
													{/if}
													<span class="xg1">{$_G['jameson_read']['trametitle']}(&lt;{$authorinfo['zgsj']})</span>
												{/if}
											</td>
											<td class="uk-text-right">
											<span class="pipe">{lang jameson_read:beifenjuan}</span>
											<select id="jtitle_{$colum['colum_id']}"  class="uk-select uk-input-65px" onchange="jameson.changeColum({$colum['colum_id']},{$colum['tid']})">
												{loop $books['fenjuan'] $jtemp}
												<option {if $jtemp['j_id']==$juan['j_id']}selected{/if} value="{$jtemp['j_id']}">{$jtemp['j_title']}</option>
												{/loop}
											</select>
											{if $authorinfo['allowedit']}
												<a href="./plugin.php?id=jameson_read&contrl=author&act=edit&tid={$colum['tid']}&pid={$colum['pid']}&book_id={$colum['book_id']}" target="_blank" class=" movingnone xs1">{lang jameson_read:bianji}</a>
											{/if}
												{if $authorinfo['allowedit']}
												<a href="javascript:;" onclick="jameson.remove(this,'colums',{$colum['colum_id']})" class=" movingnone xs1">{lang jameson_read:shanchu}</a>
												{/if}
												</td>
											</tr>
										{/loop}
										{if $columnums > 100}
											<tr>
												<td colspan="3">
													<a href="javascript:;" onclick="jameson.showyinchangtr(this,'#fenjuan_tr_{$juan[j_id]}','.yinchangtr')" class="uk-button uk-button-default">
														{lang jameson_read:xianshibenjuanxia}
														<span uk-icon="chevron-down"></span>
													</a>
												</td>
											</tr>
										{/if}
										<input type="hidden" id="cthispage_{$juan['j_id']}" value="1">
										</tbody>
									{/if}
								</table>
							</div>
						</div>
					{/loop}
					</div>
					{/if}
				</form>
				{if !$books['fenjuan']}
					<div class="uk-alert-danger" uk-alert>{lang jameson_read:xiantianjiafenjuan}</div>
				{/if}
				<form class="uk-form mtm mbm uk-padding-small grayback movingnone" method="post" action="./plugin.php?id=jameson_read&contrl=author&act=postfenjuan" onsubmit="return jamesonauthor.checkjuanming(this)">
					<input type="hidden" name="book_id" value="{$_GET['book_id']}" />
					<input type="hidden" name="formhash" value="{FORMHASH}" />
					<input type="hidden" name="forward" value="book_column" />
					<div class="uk-form-row mtm ">
					  <label class="uk-form-label xs2">{lang jameson_read:tianjiaxinfenjuan}{lang jameson_read:juanming}</label>
					  <div class="uk-form-controls mtm">
						  <input name="newjuanname" required class="uk-input uk-input-75per" type="text"/>
						  <button type="submit"  class="uk-button uk-button-danger margin-lm">{lang jameson_read:tianjiaxinfenjuan}</button>
					  </div>
					</div>
				</form>
				{/if}
			    <!-- colum end -->
			</div>
		{else}
			<div class="{if $_GET['forward']=='book_pdf'}uk-active{/if}" id="book_pdf">
			    <!-- pdf start  -->
				<form action="./plugin.php?id=jameson_read&contrl=author&act=postpdf" method="post" enctype="multipart/form-data" class="uk-form mtm">
					<input type="hidden" name="formhash" value="{FORMHASH}" />
					<input type="hidden" name="book_id" value="{$book_id}" />
					<input type="hidden" name="forward" value="book_pdf" />
					{if $pdfs}
						<table class="uk-table uk-table-hover mt0">
							<thead>
							<tr>
								<th class="xw1">{lang jameson_read:xuhao}</th>
								<th class="xw1">{lang jameson_read:biaoti}</th>
								<th class="xw1">{lang jameson_read:caozuo}</th>
							</tr>
							</thead>
							<tbody>
							{loop $pdfs $key $pdf}
								<tr id="pdf_tr_{$pdf['id']}">
									<td>
										<div class="uk-form-row">
										<div class="uk-form-controls">
											<input class="uk-input uk-input-45px" type="text" name="pdfordernum[{$pdf['id']}]" value="{$pdf['ordernum']}" >
										</div>
										</div>
									</td>
									<td>
									<div class="uk-form-row">
										<div class="uk-form-controls">
											<input class="uk-input input-90" required type="text" name="pdfname[{$pdf['id']}]" value={$pdf['name']} >
										</div>
									</div>
									</td>
									<td>
										<a class="uk-button" onclick="jameson.remove(this,'pdf',{$pdf['id']})" href="javascript:;">{lang jameson_read:shanchu}</a>
									</td>
								</tr>
							{/loop}
							</tbody>
						</table>
					{/if}
					<table class="uk-table mt0">
						<tbody>
						<tr class="grayback">
							<td colspan="2">
								<div class="uk-form-row">
									<label class="uk-form-label xw1">{lang jameson_read:tianxiepdfname}</label>
									<div class="uk-form-controls mtn">
										<input required class="uk-input" type="text" name="newpdfname"  class="uk-input input-90 " id="newpdfname">
									</div>
								</div>
							</td>
							<td colspan="2">
							<div class="uk-form-row">
							    <label class="uk-form-label">
							    <strong>{lang jameson_read:shangchuanpdf}</strong>/{lang jameson_read:shangchuanchicun}{eval echo ini_get('upload_max_filesize');}
							    </label>
							    <div class="uk-form-controls mtn">
							    {if $_G['jameson_read']['qiniuak'] && $_G['jameson_read']['qiniusk'] && $_G['jameson_read']['qiniuyuming'] && $_G['jameson_read']['qiniukongjian']}
									<input onchange="jameson.qiniu(this)" type="file" maxlength="{eval echo ini_get('upload_max_filesize');}" name="newpdffile" >
									<div id="qiniutishi" class="mtn uk-text-primary">{lang jameson_read:shangchuandaoqiniu}</div>
									<input type="hidden" name="newpdfurl" id="pdfurlinput">
							    {else}
									<input onchange="jamesonauthor.checkfile(this)" type="file" maxlength="{eval echo ini_get('upload_max_filesize');}" name="newpdffile" >
							    {/if}
							    </div>
							</div>
							</td>
						</tr>
					</tbody>
					</table>
					<div class="text-center">
						<button class="uk-button uk-button-danger mtm mbm" type="submit">{lang jameson_read:tijiao}</button>
					</div>
				</form>
			    <!-- pdf end -->
			</div>
		{/if}
	{/if}
		<!-- colum end -->

	<!-- shuping start -->
	{if $_G['jameson_read']['enableshuping'] && !$_G['jameson_read']['otherpinglun']}
		<div class="{if $_GET['forward']=='book_shuping'}uk-active{/if}" id="book_shuping">
	    	<!-- shu ping start -->
			{if $_GET['book_id']}
			<form action="" class="uk-form" id="">
				{if $book_id && $books['dianping']}
				<table class="uk-table uk-table-hover" id="bookshuping">
					<thead class="back-f9">
						<tr class="">
							<th class="">{lang jameson_read:xuhao} &nbsp;<a href="javascript:;" data-select="1" onclick="jamesonauthor.selectall(this)" id="quanxuan" class="xs1 xg1">{lang jameson_read:quanxuan}</a></th>
							<th class="">{lang jameson_read:yonghu}</th>
							<th class="">{lang jameson_read:shupingneirong}</th>
							<th class="">{lang jameson_read:caozuo}</th>
						</tr>
					</thead>
					<tbody>
						{loop $books['dianping'] $key $value}
						<tr id="dianping_tr_{$value['dp_id']}">
							<td class="">
								<div class="uk-form-row">
								<div class="uk-form-controls">
									<label class="uk-form-label">{eval echo ++$key;}
									</label>
									<input type="checkbox" data-id="{$value['dp_id']}" class="fastremove uk-checkbox" name="remove[{$value['dp_id']}]" />
								</div>
								</div>
							</td>
							<td>
								<a href="./home.php?mod=space&uid={$value['uid']}" target="_blank">{$value['author']}</a>
							</td>
							<td style="width:60%;">
									<div class="overflow-auto">{eval echo dhtmlspecialchars($value['text']);}</div>
							</td>
							<td>
								<a class="uk-button" href="javascript:;" onclick="jameson.remove(this,'dianping',{$value['dp_id']})">{lang jameson_read:shanchu}</a>
							</td>
						</tr>
						{/loop}
					</tbody>
				</table>
				<div class="pg cl">{$pageshow}</div>
				<div class="cl uk-padding-small uk-text-center">
					<a href="javascript:;" onclick="jameson.fastremove('bookshuping','dianping')" class="uk-button uk-button-danger">{lang jameson_read:shanchuxuanzhongshuping}</a>
				</div>
				{else}
					<div class="uk-alert-danger" uk-alert><br>{lang jameson_read:zanwushuping}</div>
				{/if}
				<input type="hidden" name="forward" value="book_shuping" />
			</form>
			{/if}
		    <!-- shu ping end  -->
		</div>
	{/if}
	<!-- shuping end -->

	<!-- sell start -->
	{if $_GET['book_id'] && $books['fenjuan']}
		<div class="{if $_GET['forward']=='book_sell'}uk-active{/if}" id="book_sell">
			{if $books['sellcounts']}
				<h2 class="uk-heading-divider ptm pbm xs3" style="padding-left: 8px;">
					{lang jameson_read:leijixiaoshoujine}
					{$leiji['jine']}
					{$_G['jameson_read']['trametitle']},
					{lang jameson_read:leijikouchuyongjin}
					{$leiji['yongjin']}
					{$_G['jameson_read']['trametitle']},
					{lang jameson_read:shijinshouru}
					{$leiji['shiji']}
					{$_G['jameson_read']['trametitle']}
					<span class="">
						({lang jameson_read:dangqian}{lang jameson_read:yongjin}{$_G['jameson_read']['yongjin']}%)
					</span><br>
					<span class="xg1 xs1">
						{lang jameson_read:yongjinshuoming}
					</span>
				</h2>
				<table class="uk-table uk-border-e6 uk-table-hover">
					<thead class="back-f9">
						<tr class="">
							<th class="">{lang jameson_read:xuhao}</th>
							<th class="">{lang jameson_read:zhangjie}</th>
							<th class="">{lang jameson_read:yonghu}</th>
							<th class="" uk-tooltip title="{lang jameson_read:yongjin} {$_G['jameson_read']['yongjin']}%">{lang jameson_read:shoujia}/{$_G['jameson_read']['trametitle']}</th>
							<th>{lang jameson_read:shijian}</th>
						</tr>
					</thead>
					<tbody>
						{if $books['dyjilus'] && !$books['is_pdf']}
						{loop $books['dyjilus'] $key $value}
						<tr>
							<td>{eval echo $key+1;}</td>
							<td><a target="_blank" href="./plugin.php?id=jameson_read&contrl=index&act=read&tid={$value['tid']}">{$value['subject']}</a></td>
							<td><a target="_blank" href="./home.php?mod=space&uid={$value['buy_id']}">{$value['username']}</a></td>
							<td>{$value['price']}</td>
							<td>{eval echo dgmdate($value['addtime']);}</td>
						</tr>
						{/loop}
						{/if}
						{if $books['dyjilus'] && $books['is_pdf']}
						{eval $key = $key?($key+1):0;}
						{loop $books['dyjilus'] $k $value}
						<tr>
							<td>{eval echo $key+($k+1);}</td>
							<td class="xi1">{lang jameson_read:zhengbengoumai}</td>
							<td><a target="_blank" href="./home.php?mod=space&uid={$value['buy_id']}">{$value['username']}</a></td>
							<td>{$value['price']}</td>
							<td>{eval echo dgmdate($value['addtime']);}</td>
						</tr>
						{/loop}
						{/if}
					</tbody>
				</table>
				<div class="page pg cl mtm mbm">{$pageshowdy}</div>
			{else}
				<div class="uk-alert-danger" uk-alert><br>{lang jameson_read:zanwujilu}</div>
			{/if}
		</div>
    {/if}
	<!-- sell end -->
	</div>
</div>


</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
<!--{subtemplate jameson_read:all_footer}-->